
<?php 
 $pageTitle = '登录资料';
 $pageId="page-userinfo";
?>

@extends('ios.pageIndex')

@section('page-content')
<div class="content-padded">
	<form class="ajax-submit"  id="update-userinfo-form" name="update-userinfo-form" method="post" action="{{URL::to('user/update')}}">
			 <div class="m-form-control">
			 	<label>姓名<span class="text-red">*</span></label>
			 	<input type="text" class="validate" id="name" name="name" 
								data-rules="required|max_length[32]" data-display="姓名" placeholder="输入姓名" value="{{$user->name}}">
			 </div>
			 
			 <div class="m-form-control">
			 	<label>手机<span class="text-red">*  非常重要，如有问题便于我们与您联系</span></label>
			 	 <input type="text" class="validate" id="mobile" name="mobile" 
								data-rules="required|mobile" data-display="手机号" placeholder="输入手机号" value="{{$user->mobile}}">
			 </div>
			 
			 <div class="m-form-control">
			 	<label>邮箱<span class="text-red">*</span></label>
			 	<input type="text" class="validate" id="email" name="email" readonly="readonly"
								data-rules="required|max_length[128]|valid_email" data-display="电子邮箱" placeholder="输入电子邮箱" value="{{$user->email}}">
			 </div>
	    	{{Form::token()}}
	    	<button type="submit" class="button button-big m-button">保存</button>
	  </form>
	
</div>
@stop